package cn.kxm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.dao.CompanyMapper2;
import cn.kxm.pojo.Company;
import cn.kxm.service.CompanyService2;

@Service
public class CompanyServiceImpl2 implements CompanyService2{

	@Autowired
	private CompanyMapper2 cm;
	@Override
	public List<Company> findAll(String code, String name, Integer type,
			Integer page, Integer size) {
		// TODO Auto-generated method stub
		return cm.findAll(code, name, type, page, size);
	}

	@Override
	public int getCount(String code, String name, Integer type) {
		// TODO Auto-generated method stub
		return cm.getCount(code, name, type);
	}

	@Override
	public Company getCompanyFax(String name) {
		// TODO Auto-generated method stub
		return cm.getCompanyFax(name);
	}


}
